package sample;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{
        Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
        primaryStage.setTitle("腾讯BuglyMapping上传工具");
        primaryStage.getIcons().add(new Image("/logo.png"));
        primaryStage.setScene(new Scene(root, 730, 550));

        //初始化业务逻辑的第一种方式
        Controller controller = new Controller();
        controller.setStage(primaryStage);

        //初始化业务逻辑的第二种方式
//        ControllerTow controllerTow = new ControllerTow();
//        controllerTow.setStage(primaryStage);

        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
    }
}
